package com.hsgene.user.domain;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hsgene.common.util.date.TimeJsonDeserializer;

import java.io.Serializable;
import java.util.Date;

/**
 * @description:
 * @projectName: hdas-geneshop-server
 * @package: com.hsgene.user.domain
 * @author: maodi
 * @createDate: 2018/10/12 11:01
 * @version: 1.0
 * Copyright: Copyright (c) 2018
 */
public class SysArea implements Serializable {
    private static final long serialVersionUID = -402114085385892791L;

    /**
     * 逻辑主键id
     */
    private String id;

    /**
     * 排序
     */
    private Integer orders;

    /**
     * 省市县全名
     */
    private String fullName;

    /**
     * 名称
     */
    private String name;

    /**
     * 拼音首字
     */
    private String py;

    /**
     * 全拼
     */
    private String pinyin;

    /**
     * 所有父级IDS
     */
    private String parentIds;

    /**
     * 父级id
     */
    private String parentId;

    /**
     * 类型(省，市,县)
     */
    private String type;

    /**
     * 创建时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date createDate;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 修改时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date updateDate;

    /**
     * 修改人
     */
    private String updateBy;

    /**
     * 大区主键
     */
    private String regionId;

    /**
     * 删除标记(0正常1删除)
     */
    private Integer delFlag;

    /**
     * 备注信息
     */
    private String remarks;

    public int getIdToInteger() {
        return Integer.valueOf(id);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getOrders() {
        return orders;
    }

    public void setOrders(Integer orders) {
        this.orders = orders;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPy() {
        return py;
    }

    public void setPy(String py) {
        this.py = py;
    }

    public String getPinyin() {
        return pinyin;
    }

    public void setPinyin(String pinyin) {
        this.pinyin = pinyin;
    }

    public String getParentIds() {
        return parentIds;
    }

    public void setParentIds(String parentIds) {
        this.parentIds = parentIds;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    public String toString() {
        return "SysArea{" +
               "id='" + id + '\'' +
               ", orders=" + orders +
               ", fullName='" + fullName + '\'' +
               ", name='" + name + '\'' +
               ", py='" + py + '\'' +
               ", pinyin='" + pinyin + '\'' +
               ", parentIds='" + parentIds + '\'' +
               ", parentId='" + parentId + '\'' +
               ", type='" + type + '\'' +
               ", createDate=" + createDate +
               ", createBy='" + createBy + '\'' +
               ", updateDate=" + updateDate +
               ", updateBy='" + updateBy + '\'' +
               ", regionId='" + regionId + '\'' +
               ", delFlag='" + delFlag + '\'' +
               ", remarks='" + remarks + '\'' +
               '}';
    }
}
